package net.xi.dmhome.entity;

import com.baomidou.mybatisplus.annotation.*;


import java.io.Serializable;

import java.util.Date;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import net.xi.dmhome.handler.ListToStringHandler;
import org.apache.ibatis.type.JdbcType;

/**
 * <p>
 * 
 * </p>
 *
 * @author jxhu
 * @since 2021-02-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "dm_patient")
public class Patient implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String name;

    private String userid;

    private Integer age;

    private Double height;

    private Double weight;

    private String diabetictype;

    /* @Description: 用于接收数据,@Param:  */
    @TableField(jdbcType = JdbcType.VARCHAR,typeHandler = ListToStringHandler.class)
    private List<String> symptom;

    private String pasthistory;

    @TableField(fill = FieldFill.INSERT)
    private Date createtime;

    @TableField(fill = FieldFill.UPDATE)
    private Date updatetime;

    @TableLogic //逻辑删除
    private Integer isdel;


}
